<?php

namespace ProjetA\GroupeBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ProjetA\GroupeBundle\Entity\Text
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="ProjetA\GroupeBundle\Entity\TextRepository")
 */
class Text
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $text
     *
     * @ORM\Column(name="text", type="string", length=255)
     */
    private $text;
    
    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=255)
     */
    private $name;

    
    
    /**
     * @ORM\ManyToOne(targetEntity="ProjetA\GroupeBundle\Entity\Groupe" , inversedBy="texts")
     */
    private $groupe;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
    public function getGroupe() {
        return $this->groupe;
    }

    public function setGroupe($groupe) {
        $this->groupe = $groupe;
    }
    
    public function getName() {
        return $this->name;
    }

    public function setName($name) {
        $this->name = $name;
    }

    
        /**
     * Set text
     *
     * @param string $text
     */
    public function setText($text)
    {
        $this->text = $text;
    }

    /**
     * Get text
     *
     * @return string 
     */
    public function getText()
    {
        return $this->text;
    }
}